﻿using System;
using System.Collections;
using System.Text;
using System.IO;
using org.sablecc.grammars.java_1_5.parser;
using org.sablecc.grammars.java_1_5.analysis;
using org.sablecc.grammars.java_1_5.lexer;
using org.sablecc.grammars.java_1_5.node;
using Commander.Parsing.Visitors;

namespace Commander.Parsing {
  class Program {
    static void Main(string[] args) {
      Lexer l = new Lexer(new StreamReader("../../zoom.txt"));
      Parser p = new Parser(l);
      Start s = p.Parse();
      var printer = new ClassVisitor();
     // var printer2 = new ClassVisitor();
      //printer.SetColor(true);

      s.Apply(printer);
      //Console.WriteLine(printer.elVar.ToString());
     // printer.elVar.Apply(printer2);
      Console.Read();
    }
  }
}
